package com.huizhan.web.dao;

import org.springframework.data.jpa.repository.*;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.*;

import java.util.*;

import javax.transaction.Transactional;

import com.huizhan.web.model.*;

@Repository 
public interface PersonalPropertyDao extends JpaRepository<PersonalProperty,Long>{
    

    /**
     * 根据用户ID获取值
     * @param personalId
     * @return
     */
    List<PersonalProperty> findByPersonalId(String personalId);
    
     
    /**
     * 根据角色id删除角色关联权限
     * @param registerId
     */   
    @Transactional
    void deleteByPersonalId(String personalId);
}